package com.mt.common.enums;

/**
 * @Author: plover
 * @Date: 2020/07/06/4:31 下午
 * @Description:
 */
public enum AppReturnCodeEnum {

    //常用基础错误
    SUCCESS(0, "当前操作成功"),
    ERROR(-1, "当前操作出现问题"),
    PARAM_ERROR(101, "参数错误"),
    MEMBER_EXPIRED(6666, "会员已到期，请先续费"),
    USER_LEVEL_NOT_ENOUGH(7777, "会员权限不够，请升级到%s"),
    UN_AUTH(8888, "用户未认证，无法进行操作"),
    UN_LOGIN(9999, "用户未登录，请先登录"),

    //登录错误
    LOGIN_ERROR_PHONE_NOT_EXIST(10001, "手机号不存在，请先注册"),
    LOGIN_ERROR_WRONG_PASSWORD(10002, "密码错误，请用验证码登录"),
    LOGIN_ERROR_WRONG_VCODE(10003, "验证码错误，请重新输入"),
    LOGIN_ERROR_WRONG_LOGIN_TYPE(10004, "登录类型错误"),
    LOGIN_ERROR_EXPIRED_VCODE(10005, "验证码已过期"),

    //我的
    USERINFO_BOSS_AUTH_BOSS_NOT_EXIST(20001, "商户信息不存在"),

    //业务
    BUSINESS_CARGO_NOT_EXIST(30001, "款号不存在"),

    ;
    AppReturnCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
